package com.ruoyi.check.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.check.mapper.MyTableMapper;
import com.ruoyi.check.domain.MyTable;
import com.ruoyi.check.service.IMyTableService;

/**
 * xxxxxxxxService业务层处理
 *
 * @author hugh.sun
 * @date 2023-06-05
 */
@Service
public class MyTableServiceImpl implements IMyTableService
{
    @Autowired
    private MyTableMapper myTableMapper;

    /**
     * 查询xxxxxxxx
     *
     * @param id xxxxxxxx主键
     * @return xxxxxxxx
     */
    @Override
    public MyTable selectMyTableById(Long id)
    {
        return myTableMapper.selectMyTableById(id);
    }

    /**
     * 查询xxxxxxxx列表
     *
     * @param myTable xxxxxxxx
     * @return xxxxxxxx
     */
    @Override
    public List<MyTable> selectMyTableList(MyTable myTable)
    {
        return myTableMapper.selectMyTableList(myTable);
    }

    /**
     * 新增xxxxxxxx
     *
     * @param myTable xxxxxxxx
     * @return 结果
     */
    @Override
    public int insertMyTable(MyTable myTable)
    {
        return myTableMapper.insertMyTable(myTable);
    }

    /**
     * 修改xxxxxxxx
     *
     * @param myTable xxxxxxxx
     * @return 结果
     */
    @Override
    public int updateMyTable(MyTable myTable)
    {
        return myTableMapper.updateMyTable(myTable);
    }

    /**
     * 批量删除xxxxxxxx
     *
     * @param ids 需要删除的xxxxxxxx主键
     * @return 结果
     */
    @Override
    public int deleteMyTableByIds(Long[] ids)
    {
        return myTableMapper.deleteMyTableByIds(ids);
    }

    /**
     * 删除xxxxxxxx信息
     *
     * @param id xxxxxxxx主键
     * @return 结果
     */
    @Override
    public int deleteMyTableById(Long id)
    {
        return myTableMapper.deleteMyTableById(id);
    }

    @Override
    public Long copysql() {
        Long copysql = myTableMapper.copysql();
        return copysql;

    }

    @Override
    public void copybiao(String name) {
        myTableMapper.copybiao(name);
    }

    @Override
    public void jieduan() {
        myTableMapper.jieduan();
    }
}
